package com.xinlong.dao;

import com.xinlong.entity.Traveller;
import com.xinlong.entity.TravellerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import java.util.Map;

public interface TravellerMapper {
    List<Map<String,Object>> age();
    /**
     * 统计性别
     * @return
     */
    List<Map<String,Object>> sex();

    /**
     * 人群统计
     * @return
     */
    List<Map<String,Object>> occupation();
    /**
     * 查询该订单的所有人
     * @param id
     * @return
     */
    List<Traveller> findByordersid(@Param("id") String id);

    /**
     *
     * @param phoneNum
     * @return
     */
    List<Traveller> selByCondition(@Param("phoneNum") String phoneNum);

    int countByExample(TravellerExample example);

    int deleteByExample(TravellerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Traveller record);

    int insertSelective(Traveller record);

    List<Traveller> selectByExample(TravellerExample example);

    Traveller selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Traveller record, @Param("example") TravellerExample example);

    int updateByExample(@Param("record") Traveller record, @Param("example") TravellerExample example);

    int updateByPrimaryKeySelective(Traveller record);

    int updateByPrimaryKey(Traveller record);
}